<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
>
<h:head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>草稿箱</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台"/>
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术"/>

    <link href="../../css/bootstrap.min.css?v=3.3.6" rel="stylesheet"/>
    <link href="../../css/font-awesome.css?v=4.4.0" rel="stylesheet"/>
    <link href="../../css/plugins/iCheck/custom.css" rel="stylesheet"/>
    <link href="../../css/animate.css" rel="stylesheet"/>
    <link href="../../css/style.css?v=4.1.0" rel="stylesheet"/>
    <style type="text/css">
        th, td {
            min-width: 200px;
            max-width: 400px;
        }
    </style>
</h:head>

<h:body class="gray-bg">
    <div class="wrapper wrapper-content">
        <div class="row">
            <div class="col-sm-3">
                <div class="ibox float-e-margins">
                    <div class="ibox-content mailbox-content">
                        <div class="file-manager">
                            <a class="btn btn-block btn-primary compose-mail" href="mail_compose.xhtml">写信</a>
                            <div class="space-25"></div>
                            <div class="clearfix"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-9 animated fadeInRight">
                <div class="mail-box-header">
                    <h2>
                        草稿箱
                    </h2>
                </div>
                <div class="mail-tools tooltip-demo m-t-md">
                    <h:form>
                        <h:dataTable value="#{notification.savedList}" var="list"
                                     class="table table-striped table-bordered table-hover dataTable">
                            <h:column>
                                <f:facet name="header">学院</f:facet>
                                <h:outputText value="#{list.major}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">标题</f:facet>
                                <h:outputText value="#{list.title}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">内容</f:facet>
                                <h:outputText styleClass="summernote" escape="false" value="#{list.content}"/>
                                <div class="clearfix"></div>
                            </h:column>
                            <h:column>
                                <f:facet name="header">操作</f:facet>
                                <h:commandButton action="#{notification.continueEdit}" styleClass="btn btn-white btn-sm"
                                                 value="继续编辑">
                                    <f:param name="id" value="#{list.id}"/>
                                </h:commandButton>
                                <h:commandButton action="#{notification.deleteSaved}" styleClass="btn btn-white btn-sm"
                                                 value="删除"/>
                            </h:column>
                            <!--<f:facet name="footer">
                                <h:panelGroup layout="line" style="display:block; text-align:center">
                                    <h:commandButton styleClass="btn btn-white btn-sm"
                                                     action="#{notification.clickSbtn1}" value="跳转首页"
                                                     binding="#{notification.sbtn1}"/>
                                    <h:commandButton styleClass="btn btn-white btn-sm"
                                                     action="#{notification.lastSavedPage}" value="上一页"/>
                                    <h:commandButton styleClass="btn btn-white btn-sm"
                                                     action="#{notification.clickSbtn2}" value="第#{notification.sp2}页"
                                                     binding="#{notification.sbtn2}"/>
                                    <h:commandButton styleClass="btn btn-white btn-sm"
                                                     action="#{notification.nextSavedPage}" value="下一页"/>
                                    <h:commandButton styleClass="btn btn-white btn-sm"
                                                     action="#{notification.clickSbtn3}" value="跳转尾页"
                                                     binding="#{notification.sbtn3}"/>
                                </h:panelGroup>
                                <h:panelGroup>
                                    <center>
                                        <h:outputText value="共#{notification.sp3}页"/>
                                    </center>
                                </h:panelGroup>
                            </f:facet>-->
                        </h:dataTable>
                    </h:form>
                </div>
            </div>
        </div>
    </div>

    <!-- 全局js -->
    <script type="text/javascript" src="../../js/jquery.min.js?v=2.1.4"></script>
    <script type="text/javascript" src="../../js/bootstrap.min.js?v=3.3.6"></script>

    <!-- 自定义js -->
    <script type="text/javascript" src="../../js/content.js?v=1.0.0"></script>

    <script type="text/javascript">
        $(document).ready(function () {
            $('.dataTable').dataTable();
        });
    </script>
    <!-- iCheck -->
    <script type="text/javascript" src="../../js/plugins/iCheck/icheck.min.js"></script>
    <script type="text/javascript" src="../../js/plugins/dataTables/jquery.dataTables.js"></script>
    <script type="text/javascript" src="../../js/plugins/dataTables/dataTables.bootstrap.js"></script>

</h:body>
</html>